/**
 * 
 */
package com.sad.model;

/**
 * @author zhaoqy
 *
 */
public class Wish {

	private DateTime createtime;
	private String status;
	private Toy toy;
	private String toyCode;
	private User user;
	private int userId;
	private int wishId;
	private int orderId;

	/**
	 * @return the createtime
	 */
	public DateTime getCreatetime() {
		return createtime;
	}

	/**
	 * @param createtime
	 *            the createtime to set
	 */
	public void setCreatetime(DateTime createtime) {
		this.createtime = createtime;
	}

	/**
	 * @return the status
	 */
	public String getStatus() {
		if (this.status != null) {
			if("w".equals(this.status)){
				return "预约等待";
			}else if("f".equals(this.status)){
				return "完成";
			}else if("c".equals(this.status)){
				return "取消";
			}else if("o".equals(this.status)){
				return "建单完成";
			}
			
//			switch (this.status) {
//			case "w":
//				return "预约等待";
//			case "f":
//				return "完成";
//			case "c":
//				return "取消";
//			case "o":
//				return "建单完成";
//			}
		}
		return status;
	}

	/**
	 * @param status
	 *            the status to set
	 */
	public void setStatus(String status) {
		this.status = status;
	}

	/**
	 * @return the toy
	 */
	public Toy getToy() {
		return toy;
	}

	/**
	 * @param toy
	 *            the toy to set
	 */
	public void setToy(Toy toy) {
		this.toy = toy;
	}

	/**
	 * @return the toyCode
	 */
	public String getToyCode() {
		return toyCode;
	}

	/**
	 * @param toyCode
	 *            the toyCode to set
	 */
	public void setToyCode(String toyCode) {
		this.toyCode = toyCode;
	}

	/**
	 * @return the user
	 */
	public User getUser() {
		return user;
	}

	/**
	 * @param user
	 *            the user to set
	 */
	public void setUser(User user) {
		this.user = user;
	}

	/**
	 * @return the userId
	 */
	public int getUserId() {
		return userId;
	}

	/**
	 * @param userId
	 *            the userId to set
	 */
	public void setUserId(int userId) {
		this.userId = userId;
	}

	/**
	 * @return the wishId
	 */
	public int getWishId() {
		return wishId;
	}
	
	/**
	 * @param wishId
	 *            the wishId to set
	 */
	public void setWishId(int wishId) {
		this.wishId = wishId;
	}

	/**
	 * @return the orderId
	 */
	public int getOrderId() {
		return orderId;
	}

	/**
	 * @param orderId the orderId to set
	 */
	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}
}
